package com.server.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;


/**
 * The persistent class for the Country database table.
 * 
 */
@Entity
@XmlRootElement
@Table(schema="mhp")
public class Country implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int countryId;

	private String countryName;

	@OneToMany(mappedBy="country",cascade={CascadeType.PERSIST,CascadeType.MERGE})
	private List<Area> areas;
	

	
	public Country() {
	}


	public int getCountryId() {
		return countryId;
	}


	public void setCountryId(int countryId) {
		this.countryId = countryId;
	}


	public List<Area> getAreas() {
		return areas;
	}


	public void setAreas(List<Area> areas) {
		this.areas = areas;
	}


	public String getCountryName() {
		return this.countryName;
	}

	public void setCountryName(String countryName) {
		this.countryName = countryName;
	}

}